package com.example.demo.facade;

public class FacadeClient {
    private BedroomLight bedroomLight=new BedroomLight();
    private HallLight hallLight=new HallLight();
    private LivingRoomLight livingRoomLight=new LivingRoomLight();
    public void on(){
        bedroomLight.on();
        hallLight.on();
        livingRoomLight.on();
    }

    public void off(){
        bedroomLight.off();
        hallLight.off();
        livingRoomLight.off();
    }
}


